package cn.ming.leo.bean;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import com.avaje.ebean.Model;

@Entity
@Table(name = "user_info")
public class User extends Model {
	public static Find<String, User> find = new Find<String, User>() {
	};

	@Id
	@GeneratedValue
	private Integer id;

	private BigDecimal amount;

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	@Temporal(TemporalType.TIMESTAMP)
	private Date updateTime;

	private String createTime;

	private String pwd;

	private String openId;

	private String mobile;

	private int roles;

	private int status;

	private int flag;

	@Transient
	private WechatInfo wechatInfo;

	public WechatInfo getWechatInfo() {
		return wechatInfo;
	}

	public void setWechatInfo(WechatInfo wechatInfo) {
		this.wechatInfo = wechatInfo;
	}

	public static Find<String, User> getFind() {
		return find;
	}

	public static void setFind(Find<String, User> find) {
		User.find = find;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public int getRoles() {
		return roles;
	}

	public void setRoles(int roles) {
		this.roles = roles;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

}
